Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Commit Classification Rule #392

Closed

Conversation

lauraschauer
Copy link
Contributor

This PR adds a new rule using the LLMService. This rule performs the same as Tommaso's commit classification, but is now implemented in Prospector itself.

It sends the diff of a commit to the LLM and asks if this commit is security relevant or not. Relevance of the rule is set to 32 for now, but this value can be adjusted after evaluation.

@lauraschauer lauraschauer force-pushed the lascha-commit-classification-rule branch from 6d37089 to e951f9b Compare July 4, 2024 12:44
…can be called with this model. This is because only one instantiation of the model is needed throughout the whole runtime of prospector
Problem to fix tomorrow: it takes all commits into consideration, but it should only take the 50 top ones or so
…e runs a set of rules, which can be invoked with the Phase's apply_rules() method
todo: add more tests
@lauraschauer lauraschauer force-pushed the lascha-commit-classification-rule branch 2 times, most recently from f6606f0 to d4bc29e Compare July 5, 2024 12:06
@lauraschauer lauraschauer force-pushed the lascha-commit-classification-rule branch from d4bc29e to f15a5ad Compare July 5, 2024 12:08
@lauraschauer
Copy link
Contributor Author

I messed up rebasing, opening a new one so that the commits are in order and changes are clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant